@extends('admin.layout.index')
@section('title')
	用户修改
@endsection
@section('content')




<div class="mws-panel grid_8">
<div class="mws-panel-header">
 

     <span>用户修改</span>

</div>
<div class="mws-panel-body no-padding">
   <form action="/admin/user/update/{{$data['id']}}" method="post" class="mws-form">
     
        <!-- 显示自动验证错误 -->
        
        <div class="mws-form-inline">
             <div class="mws-form-row">
                  <label class="mws-form-label">　　用户名:</label>
                  <div class="mws-form-item">
                       <input value="{{ $data['username'] }}" type="text" class="small" name="username">
                  </div>
             </div>
           
             <div class="mws-form-row">
                  <label class="mws-form-label">　　性别:</label>
                  <div class="mws-form-item clearfix">
                    <ul class="mws-form-list inline">
                      <li><input type="radio" name="sex" value="男" @if($data['sex']=='男') checked @endif>男</li>
                      <li><input type="radio" name="sex" value="女" @if($data['sex']=='女') checked @endif>女</li>
                      <li><input type="radio" name="sex" value="保密" @if($data['sex']=='保密') checked @endif>保密</li>
                    </ul>
                  </div>
			</div>
             <div class="mws-form-row">
                  <label class="mws-form-label">　　地址:</label>
                  <div class="mws-form-item">
                       <input value="{{ $data['address'] }}" type="text" name="address" class="small">
                  </div>
             </div>

             <div class="mws-form-row">
                  <label class="mws-form-label">　　邮箱:</label>
                  <div class="mws-form-item">
                       <input value="{{ $data['email'] }}" type="text" name="email" class="small">
                  </div>
             </div>

             <div class="mws-form-row">
                <label class="mws-form-label">　　状态:</label>
                <div class="mws-form-item">
                  <select class="small" name="status">
                    <option value="未激活" @if($data['status']=='未激活') selected @endif>未激活</option>
                    <option value="激活" @if($data['status']=='激活') selected @endif>激活</option>
                    <option value="禁用" @if($data['status']=='禁用') selected @endif>禁用</option>
                  </select>
                </div>
            </div>
        </div>
        {{csrf_field()}}
        <center>
        <div class="mws-button-row" >
            <!-- <input type="hidden" name="_token" value="S4e6VN771aqBwW6bzxrl3AONiGtETY4GL3rQK3RU"> -->
             <input type="submit" class="btn btn-danger" value="修改">
             <input type="reset" class="btn " value="重置">
        </div>
        </center>
   </form>
</div>         
</div>
@endsection
